set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

set(TOOLCHAIN_DIR "/home/share/samba/flyingcys/Tina-Linux/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin")
set(TOOLCHAIN_PRE "riscv64-unknown-linux-gnu-")

set(CMAKE_C_COMPILER "${TOOLCHAIN_DIR}/${TOOLCHAIN_PRE}gcc")
set(CMAKE_CXX_COMPILER "${TOOLCHAIN_DIR}/${TOOLCHAIN_PRE}g++")
set(CMAKE_AS_COMPILER "${TOOLCHAIN_DIR}/${TOOLCHAIN_PRE}gcc")